﻿<UserControl
    x:Class="BootyShaker.AboutPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">
    <!--SupportedOrientations="Portrait" Orientation="Portrait"-->
    <UserControl.Resources>
        <Storyboard x:Name="Hide">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="500"/>
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="LayoutRoot">
                <DiscreteObjectKeyFrame KeyTime="0" >
                    <DiscreteObjectKeyFrame.Value>
                        <Visibility>Collapsed</Visibility>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="Show"  Completed="Show_Completed">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)" Storyboard.TargetName="LayoutRoot">
                <EasingDoubleKeyFrame KeyTime="0" Value="500"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="LayoutRoot">
                <DiscreteObjectKeyFrame KeyTime="0" >
                    <DiscreteObjectKeyFrame.Value>
                        <Visibility>Visible</Visibility>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot"  Loaded="PhoneApplicationPage_Loaded">
        <Grid.RenderTransform>
            <TranslateTransform/>
        </Grid.RenderTransform>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>

        </Grid.RowDefinitions>
        <Grid Margin="12,17,0,28">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <Grid x:Name="btnBack" Margin="10,10,10,10" Grid.Column="0" VerticalAlignment="Bottom"  Tap="btnBack_Tap">
                <Image   Stretch="None" Source="/Icons/appbar.back.rest.png"  HorizontalAlignment="Left" />
                <Image   Stretch="None" Source="/BootyShaker;component/Icons/appbar.basecircle.rest.png"  HorizontalAlignment="Left" />
            </Grid>
            <!--TitlePanel contains the name of the application and page title-->
            <StackPanel Grid.Column="1" x:Name="TitlePanel" Grid.Row="0" >
                <!--<TextBlock Foreground="White" x:Name="ApplicationTitle" Text="BootyShaker" Style="{StaticResource PhoneTextNormalStyle}"/>-->
                <TextBlock Foreground="White" x:Name="PageTitle" Text="About" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
            </StackPanel>
        </Grid>
        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <!--<ScrollViewer     ScrollViewer.VerticalScrollBarVisibility="Hidden" Grid.Row="1" Margin="0,0,0,10">-->
            <StackPanel Grid.ColumnSpan="2"  Orientation="Horizontal" VerticalAlignment="Top" UseLayoutRounding="True">
                <StackPanel VerticalAlignment="Top" Margin="10,10,20,10">
                    <TextBlock Foreground="White" x:Name="Version" Text="Version 1.0" Margin="9,-7,0,20" Style="{StaticResource PhoneTextTitle2Style}"/>
                    <TextBlock Foreground="White" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Stretch" Margin="10,0,0,0" VerticalAlignment="Stretch"  TextWrapping="Wrap">
            Copyright © 2012 Motif, Lithuania
                    </TextBlock>
                    <TextBlock Foreground="White" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Stretch"  Margin="10,0,0,0"   VerticalAlignment="Stretch"  TextWrapping="Wrap">
            Developer: Kęstutis Bagdonas
                    </TextBlock>

                </StackPanel>

                <Image Name="image1" Stretch="Fill"  Source="/BootyShaker;component/Images/MotifLogo.png" Height="73" Width="91" VerticalAlignment="Center" />

            </StackPanel>

            <!--</ScrollViewer>-->
            <Grid Grid.Row="1" VerticalAlignment="Bottom">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="Auto"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"></ColumnDefinition>
                    <ColumnDefinition></ColumnDefinition>
                </Grid.ColumnDefinitions>



                <Image Margin="10,10,20,10" Grid.Column="0" Grid.Row="0"  Source="/BootyShaker;component/Icons/rate.png" Stretch="None" Tap="Image_Rate" />
                <TextBlock Foreground="White"  Grid.Column="1" Grid.Row="0"  HorizontalAlignment="Stretch" Margin="10,10,10,10" VerticalAlignment="Center" TextTrimming="None" TextWrapping="Wrap" >
           Rate the app
                </TextBlock>


                <Image x:Name="btnBuy"  Margin="10,10,20,10" Grid.Column="0" Grid.Row="1"  Source="/BootyShaker;component/Icons/cart.png"  Stretch="None" Tap="Image_Buy" />
                <TextBlock x:Name="txtBuy"  Foreground="White"  Grid.Column="1" Grid.Row="1"   HorizontalAlignment="Stretch" Margin="10,10,10,10" VerticalAlignment="Center" TextTrimming="None" TextWrapping="Wrap">
           Buy the app
                </TextBlock>

                <Image Margin="10,10,20,10" Grid.Column="0" Grid.Row="2" Source="/BootyShaker;component/Icons/appbar.basecircle.rest.png" Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Left" />
                <Image Margin="10,10,20,10" Grid.Column="0" Grid.Row="2" Source="/BootyShaker;component/Icons/appbar.feature.email.rest.png" Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Left" Tap="Image_Email" />
                <TextBlock Foreground="White" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Stretch" Margin="10,10,10,10"  VerticalAlignment="Center"  TextWrapping="Wrap">
           Write to us
                </TextBlock>
            </Grid>
            <StackPanel Grid.Row="1" Grid.Column="2" Margin="18,20,10,0">
                <TextBlock Foreground="White"   Style="{StaticResource PhoneTextTitle2Style}">
                    Also try:
                </TextBlock>
                <Image  Stretch="None" Margin="0,10,0,0" HorizontalAlignment="Left" Source="/Images/MB_173.png" Tap="Image_Tap" />
            </StackPanel>
        </Grid>
       
        <!--<Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#ed8383" Offset="0" />
                <GradientStop Color="#dc9094" Offset="1" />
            </LinearGradientBrush>
        </Grid.Background>-->
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</UserControl>
